package com.sdd.sg.provider;

import com.sdd.sg.api.UserService;
import com.sdd.sg.dto.UserAddDto;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

/**
 * ClassName: UserServiceImpl
 * Description:
 * date: 2020/7/6
 *
 * @author xugaojun
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Override
    public String saveUser(UserAddDto dto) {
        log.info("======> saveUser, param[UserAddDto]: {}", dto);
        return "========================== saveUser =================================";
    }

    @Override
    public UserAddDto getUser() {
        UserAddDto dto = new UserAddDto();
        dto.setUsername("openxgj");
        dto.setPassword("123456");
        return dto;
    }
}
